<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:c="http://java.sun.com/jsp/jstl/core">
      <ui:composition template="template.xhtml">
      <ui:define name="content">  
    
             
        <h:body>
        
        <div class="container">
        <form class="form-horizontal well">
        <fieldset>
            <h:form>
          <legend>Cadastrar Médico</legend>
          <div class="control-group">
            <label class="control-label" for="input01">Nome:</label>
            <div class="controls">
              <h:inputText value="#{medicoMBean.nome}"/>
            </div>
          </div>
          <div class="control-group">
            <label class="control-label" for="input01">CRM:</label>
            <div class="controls">
                <h:inputText value="#{medicoMBean.crm}"/>
            </div>
          </div>
          <div class="control-group">
            <label class="control-label" for="input01">Telefone:</label>
            <div class="controls">
                <h:inputText value="#{medicoMBean.telefone}"/>
            </div>
          </div>
          <div class="control-group">
            <label class="control-label" for="input01">Rua:</label>
            <div class="controls">
                <h:inputText value="#{medicoMBean.rua}"/>
            </div>
          </div>
          <div class="control-group">
            <label class="control-label" for="input01">Bairro:</label>
            <div class="controls">
                <h:inputText value="#{medicoMBean.bairro}"/>
            </div>
          </div>
          <div class="control-group">
            <label class="control-label" for="input01">Cidade:</label>
            <div class="controls">
                <h:inputText value="#{medicoMBean.cidade}"/>
            </div>
          </div>
          <div class="control-group">
            <label class="control-label" for="input01">Estado:</label>
            <div class="controls">
                <h:inputText value="#{medicoMBean.estado}"/>
            </div>
          </div>
          
          
          <div class="control-group">
            <label class="control-label" for="input01">Especialidade:</label>
            <div class="controls">
              <h:inputText value="#{medicoMBean.especialidade}"/>
            </div>
          </div>
          <div align="center">
              <h:commandButton value="Cadastrar" action="#{medicoMBean.cadastrar}"></h:commandButton>    
          </div>
            </h:form>
        </fieldset>
        </form>
        </div>
        
    </h:body>
      </ui:define>
   </ui:composition>
</html>